package com.chen.blog.vo;

import com.chen.blog.pojo.Labels;
import lombok.Data;

import java.util.Set;

@Data
public class LabelsVo {

    private Labels root;

    private Set<Labels> child;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        LabelsVo labelsVo = (LabelsVo) o;

        if (!root.equals(labelsVo.root)) return false;
        return child.equals(labelsVo.child);
    }

    @Override
    public int hashCode() {
        int result = root.hashCode();
        result = 31 * result + child.hashCode();
        return result;
    }
}
